<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

        var arr = new Array(30);
        for (var i =0; i < arr.length; i++){

            //为什么要i+1*2  因为这里的索引是0 要是
            arr[i] = (i + 1)*2;
        }
    </script>
</body>
</html>